package com.lebang.model;

import lombok.Data;

import java.util.List;

/**
 * @Author: hwq
 * @Date: 2019/9/25 10:36
 * @Version 1.0
 */
@Data
public class PageModel<T> {
    private Long count;
    private List<T> data;

    public PageModel(Long count, List<T> data) {
        this.count = count;
        this.data = data;
    }
    public PageModel(List<T> data, Long count) {
        this.count = count;
        this.data = data;
    }
}
